package com.cn.wanxi.thread.style;

public class MyThreadTest {
    public static void main(String[] args) {
        MyThread myThread = new MyThread();//线程创建
        myThread.setName("线程1");
        myThread.setPriority(1);
        myThread.start();//线程就绪
        MyThread myThread2 = new MyThread();//线程创建
        myThread2.setPriority(10);
        myThread2.setName("线程2");
        myThread2.start();//线程就绪
        MyThread myThread3 = new MyThread();//线程创建
        myThread3.setName("线程3");
        myThread3.setPriority(3);
        myThread3.start();//线程就绪
        MyThread myThread4 = new MyThread();//线程创建
        myThread4.setName("线程4");
        myThread4.setPriority(4);
        myThread4.start();//线程就绪
    }
}
